<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>cms-社区管理系统</title>
    <link th:href="@{favicon.ico}" rel="shortcut icon"/>
    <link rel="stylesheet" th:href="@{/layui/css/layui.css}"/>
    <link rel="stylesheet" th:href="@{/css/common/main.css}"/>
    <link rel="stylesheet" th:href="@{/css/plugins/font-awesome-4.7.0/css/font-awesome.min.css}" media="all">
</head>
<body>
<div class="layui-form timo-compile">
    <form th:action="@{/admin/user/editUser}">
        <input type="hidden" name="id" th:if="${user}" th:value="${user.id}"/>
        <div class="layui-form-item">
            <label class="layui-form-label required">登录账号</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="userCount"  placeholder="请输入登录账号" th:value="${user?.userCount}" disabled>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">登录名</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="username"  placeholder="请输入登录名" th:value="${user?.username}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">用户角色</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="userRole" placeholder="请输入用户角色" th:value="${user?.userRole}" disabled>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">用户手机号</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="telephone" placeholder="请输入电话" th:value="${user?.telephone}" >
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">邮箱</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="email" placeholder="请输入邮箱" th:value="${user?.email}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">创建时间</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="createTime" placeholder="请输入创建时间" th:value="${user?.createTime}" disabled>
            </div>
        </div>
        <div class="layui-form-item timo-finally">
            <button class="layui-btn ajax-submit"><i class="fa fa-check-circle"></i> 保存</button>
            <button class="layui-btn btn-secondary close-popup"><i class="fa fa-times-circle"></i> 关闭</button>
        </div>
    </form>
</div>
<script th:src="@{/layui/layui.js}"></script>
<script th:src="@{/js/plugins/layer/layer.min.js}"></script>
<script th:src="@{/js/common/main.js}"></script>
</body>
</html>